import { OcrController } from '@/controller/miniProgram/OcrController';

export const Ocr = [
  {
    method: 'post',
    route: '/sdk/data',
    controller: OcrController,
    action: 'saveData',
  },
  {
    method: 'get',
    route: '/sdk/data',
    controller: OcrController,
    action: 'getData',
  },
  {
    method: 'post',
    route: '/ocr/custom',
    controller: OcrController,
    action: 'customOcr',
  },
  {
    method: 'post',
    route: '/ocr',
    controller: OcrController,
    action: 'getOcr',
  },
  {
    method: 'post',
    route: '/ocr/vehicle_license',
    controller: OcrController,
    action: 'getOcrForVehicleLicense',
  },
  {
    method: 'post',
    route: '/webhook',
    controller: OcrController,
    action: 'webHook',
  },
  {
    method: 'post',
    route: '/text_to_speech',
    controller: OcrController,
    action: 'convertTextToSpeech',
  },
  /* sdk */
  {
    method: 'post',
    route: '/sdk/eid_token',
    controller: OcrController,
    action: 'getEidToken',
  },
  {
    method: 'post',
    route: '/sdk/eid_result',
    controller: OcrController,
    action: 'getEidResult',
  },
  {
    method: 'post',
    route: '/sdk/sdk_token',
    controller: OcrController,
    action: 'getSdkToken',
  },
  {
    method: 'post',
    route: '/sdk/sdk_result',
    controller: OcrController,
    action: 'getSdkResult',
  },

];
